package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Schema(
        name = "PersonInfo",
        title = "个人信息表",
        description = ""
)
@TableName(value = "users_person_info")
public class PersonInfo {

    @Schema(title = "个人信息id", description = "")
    @TableId(value = "person_id")
    private Long id;

    @Schema(title = "高校id", description = "")
    @TableField(value = "college_id")
    private Long collegeId;

    @Schema(title = "班级id", description = "")
    @TableField(value = "class_id")
    private Long classId;

    @Schema(title = "身份信息", description = "")
    @TableField(value = "identity_id")
    private Long identityId;

    @Schema(title = "性别", description = "")
    @TableField(value = "person_sex")
    private Boolean sex;

    @Schema(title = "出生日期", description = "")
    @TableField(value = "person_birthdate")
    private Date birthdate;

    @Schema(title = "民族", description = "")
    @TableField(value = "person_nation")
    private String nation;

    @Schema(title = "地址", description = "")
    @TableField(value = "person_address")
    private String address;

    @Schema(title = "宗教信仰", description = "")
    @TableField(value = "person_religion")
    private String religion;
}

